<template>
<div>
	<button class="nav-mobile-button" @click="change" ref="btn">
	    <span id="span1" class="same"></span>
	    <span id="span2" class="same"></span>
	    <span id="span3" class="same"></span>
	</button>
	<div class="box" ref="box">
	    
	</div>
</div>
</template>

<script>
export default {
	name: 'menu',
	data() {
		return {

		}
	},
	methods: {
		change() {
			this.$emit("change")
		}
	}
}
</script>
<style scoped lang="scss">
*{
    margin: 0;
    padding: 0;
}
.nav-mobile-button {
    position: relative;
    float: left;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    outline: none;
    border-radius: 4px;
}
.nav-mobile-button .same:nth-child(1){
    margin-top: 0; 
}
.nav-mobile-button .same {
    display: block;
    margin-top: 4px;
    width: 22px;
    height: 2px;
    background: rgb(63, 81, 181);
    border-radius: 1px; 
}
.box{
    width: 400px;
    height: 500px;
    background-color: #eee;
    transform: translate(-400px,0);
}
</style>